package com.fengycx.autoconfigure;

import com.fengycx.config.SaTokenConfigure;
import com.fengycx.config.StpInterfaceImpl;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.redis.core.RedisTemplate;

@Configuration
public class SatokenAutoConfiguration {

    @Bean
    public SaTokenConfigure saTokenConfigure(){
        return new SaTokenConfigure();
    }


    @Bean
    public StpInterfaceImpl stpInterface(RedisTemplate redisTemplate){
        return new StpInterfaceImpl(redisTemplate);
    }
}
